package com.link2room.cms.service;

import com.link2room.cms.dto.param.base.CmsBaseParamDto;
import com.link2room.cms.dto.result.CmsBaseDto;
import com.link2room.cms.entity.CmsBase;
import com.link2room.cms.entity.CmsBaseDetail;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author sqj88
 * @date 2017/12/1 11:17
 */
public interface ICmsBaseService {
    @Transactional
    void saveOrUpdateCmsBase(CmsBase cmsBase, CmsBaseDetail cmsBaseDetail)throws Exception;

    List<CmsBaseDto> getCmsBaseTree(CmsBaseParamDto cmsBaseParamDto)throws Exception;

    void deleteCmsBase(String lhotelGroupCode, List<String> categorys, Object[] ids) throws Exception;
}
